import requests
url = "https://www.baidu.com"

# 模拟浏览器进行网页请求
rq = requests.get(url)

print("结果类型：", type(rq)) # 检查结果类型<class 'requests.models.Response'> "类"

print("状态码:", rq.status_code)

print("编码:", rq.encoding)

